package com.example.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

import java.util.Map;

//响应式开发   导入的是WebFlux
//@MapperScan("com.example.springboot.mapper") //可以主动给包下的都加上@Mapper注解
@ServletComponentScan(basePackages = "com.example.springboot.servlet")//扫描原生 servlet
@SpringBootApplication(scanBasePackages = "com.example.springboot")//表示是一个SpringBoot应用
public class Application {//主配置类

    public static void main(String[] args) {
        ConfigurableApplicationContext run =
                SpringApplication.run(Application.class, args);
//        for (String s:run.getBeanDefinitionNames()){
//            System.out.println(s);
//        }


        ConfigurableEnvironment environment = run.getEnvironment();

        Map<String, Object> systemEnvironment = environment.getSystemEnvironment();
        Map<String, Object> systemProperties = environment.getSystemProperties();


    }

}
